home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 41.zip
/
BS1 part 41
/
Lattice C v5.02 d4.adf
/
examples
/
debugger
/
mods.cpr
< prev
next >
Wrap
Text File
|
1988-11-07
|
517b
|
15 lines
/* Display system resident modules */
execbase = import("00000004"x,4)
reslist = import(offset(execbase,300),4)
'd "Address Pri Type Name"'
do forever
mod = import(reslist,4)
if mod = "00000000"x then leave
priority = right(c2d(import(offset(mod,13),1),1),4)
type = right(c2d(import(offset(mod,12),1),1),3)
name = import(import(offset(mod,18),4))
name = strip(translate(name,"0a"x,"0d"x),'t', "0a"x)
'd "$'||c2x(mod) priority type name'"'
reslist = offset(reslist,4)
end
exit(0)